<?php
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('job-info-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>星火科技</title>
<META NAME="Title" CONTENT="星火科技">
<META NAME="Author" CONTENT="复杂系统与电子商务创新实验室">
<META NAME="Subject" CONTENT="如：Meta 标签生成器">
<META NAME="Description" CONTENT=",复杂系统与电子商务创新实验室,搜索引擎,垂直搜索">
<META NAME="Keywords" CONTENT="搜索引擎,垂直搜索,星火科技">
<META NAME="Language" CONTENT="zh-CN">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/search.css" media="screen, projection" />
<!--<link href="style/search.css" rel="stylesheet" media="screen" type="text/css" />-->
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/display.js" language="javascript" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/shengshi.js" language="javascript" type="text/javascript"></script>
</head>
<body>
	<div id="header">
		<a style="cursor:pointer;" title="返回主页" href="<?php echo Yii::app()->request->baseUrl; ?>"><h1 id="inf_logo"><span>农工搜职</span></h1></a><!--logo-->
		<div class="inf_shadow"></div>
		<div id="inf_search" style="display:block;">
			<?php 
						$this->renderPartial('../jobInfo/_search_wugong1',array(
						'model_job'=>$model_job,
						)); 
						?>
		</div>
		<div id="inf_search1" style="display:none;">
			<?php 
						$this->renderPartial('../njtab/_search_nongji1',array(
						'model_nj'=>$model_nj,
						)); 
						?>
		</div>
		<?php
			if(isset($_GET['JobInfo']) && array_filter($_GET['JobInfo']))
			{
				echo '<script>window.load=hide2(2);</script>';
			}
			else if(isset($_GET['Njtab']) && array_filter($_GET['Njtab']))
			{
				echo '<script>window.load=hide2(1);</script>'; 
			}
		?>
	<div id="main">
		<div id="def_job"><strong><span>搜索</span>结果</strong></div>
		<br />
		<div id="content">
			<div id="job_list">
			
				<?php 
				if(isset($_GET['JobInfo']) && array_filter($_GET['JobInfo']))
				{
					if(isset($_GET['Id']))
					{
						$this->renderPartial('../jobInfo/_job',array(
							'models'=>$models[$_GET['Id']],
						));
					}
					else
					{
						$this->renderPartial('../jobInfo/_list_right',array(
							'models'=>$models,
							'pages'=>$pages,
							)); 
					}
				}
				else if(isset($_GET['Njtab']) && array_filter($_GET['Njtab']))
				{
					if(isset($_GET['Id']))
					{
						$this->renderPartial('../njtab/_job',array(
							'models'=>$models[$_GET['Id']],
						)); 
					}
					else
					{
						$this->renderPartial('../njtab/_list_right',array(
							'models'=>$models,
							'pages'=>$pages,
							)); 
					}
				}
				?>
			</div>
			<!--<div id="other_infor">
				<div>	
					<h3>发布日期</h3>
					<ul>
						<li><a href="">最近24小时</a></li>
						<li><a href="">最近7天</a></li>
						<li><a href="">最近14天</a></li>
						<li><a href="">最近30天</a></li>
					</ul>
				</div>
				<div>
					<h3>职位名称</h3>
					<ul>
						<li><a href="">会计</a><span>[200]</span></li>
						<li><a href="">出纳</a><span>[200]</span></li>
						<li><a href="">财务经理</a><span>[200]</span></li>
						<li><a href="">财务会计</a><span>[200]</span></li>
						<li><a href="">成本会计</a><span>[200]</span></li>
						<li><a href="" class="more">更多</a></li>
					</ul>
				</div>
				<div>
					<h3>公司名称</h3>
					<ul>
						<li><a href="">会计</a><span>[200]</span></li>
						<li><a href="">出纳</a><span>[200]</span></li>
						<li><a href="">财务经理</a><span>[200]</span></li>
						<li><a href="">财务会计</a><span>[200]</span></li>
						<li><a href="">成本会计</a><span>[200]</span></li>
						<li><a href="" class="more">更多</a></li>
					</ul>
				</div>
				<div>
					<h3>薪水范围</h3>
					<ul>
						<li><a href="">1000以下</a><span>[200]</span></li>
						<li><a href="">1000-2000</a><span>[200]</span></li>
						<li><a href="">2000-3999</a><span>[200]</span></li>
						<li><a href="">4000-5999</a><span>[200]</span></li>
						<li><a href="">6000-7999</a><span>[200]</span></li>
						<li><a href="">8000-9999</a><span>[200]</span></li>
						<li><a href="">10000以上</a><span>[200]</span></li>
					</ul>
				</div>
			</div>-->
		</div>
		<div id="footer" class="inf_footer">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'管理', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'登出 ('.Yii::app()->user->name.')', 'url'=>array('site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
		  版权所有：2010-2011  湖南农业大学<br />  
		  技术支持：<a href="http://www.csecl.com/" title="复杂系统与电子商务创新实验室" target="_blank">复杂系统与电子商务创新实验室</a>
		</div>
	</div>
</body>
</html>